package jwdt.xadmin.custom.bean;

import jwdt.xadmin.rskq.bean.TRsxx;
import jwdt.xadmin.system.bean.FLMX;

import com.ezerg.db.Jdb;
import com.ezerg.db.annotation.Column;
import com.ezerg.db.annotation.Table;

@Table(name="t_car_wh", keys={"id"}, comment="")
public class TCarwh implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	@Column(value="id", comment="")
	private String id;
	
	@Column(value="cph", comment="")
	private String cph;
	
	@Column(value="whrq", comment="")
	private String whrq;
	
	@Column(value="whyy", comment="")
	private Integer whyy;
	
	@Column(value="whlx", comment="")
	private Integer whlx;
	
	@Column(value="whfy", comment="")
	private Integer whfy;

	@Column(value="jbr", comment="")
	private String jbr;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	


	public String getCph() {
		return cph;
	}

	public void setCph(String cph) {
		this.cph = cph;
	}

	public String getWhrq() {
		return whrq;
	}

	public void setWhrq(String whrq) {
		this.whrq = whrq;
	}

	public Integer getWhyy() {
		return whyy;
	}

	public void setWhyy(Integer whyy) {
		this.whyy = whyy;
	}

	public Integer getWhlx() {
		return whlx;
	}

	public void setWhlx(Integer whlx) {
		this.whlx = whlx;
	}

	public Integer getWhfy() {
		return whfy;
	}

	public void setWhfy(Integer whfy) {
		this.whfy = whfy;
	}

	public String getJbr() {
		return jbr;
	}

	public void setJbr(String jbr) {
		this.jbr = jbr;
	}

	public String getUserfullname() {
		TRsxx user = (TRsxx)Jdb.get().get(TRsxx.class, jbr);
		if(user == null) {
			return "";
		} else {
			return user.getFullname();
		}
	}
	
	public String getFmxmc() {
		if(this.whlx == 0)
			return "";
		FLMX d = (FLMX)Jdb.get().get(FLMX.class, this.whlx);
		if(d == null)
			return "";
		return d.getMxmc();
	}
	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	
}
